Panel = function(panelId)
{
	this.panelId = panelId;
	this.defaultDisplay = "block";
	this.panelEl = document.getElementById(this.panelId);
	this.nextButton = document.getElementById(this.panelId+"_NextButton");
	this.sendRequest = function(callback)
	{
		// TODO send request to server, receive response and then call this callback:
		callback();
	};
	//this.receiveResponse = function(){};
	
	this.hide = function(){
		//document.getElementById(this.panelId).style.visibility = "hidden";
		this.panelEl.style.display = "none";
	}
	this.show = function(){
		//document.getElementById(this.panelId).style.visibility = "hidden";
		this.panelEl.style.display = this.defaultDisplay;
	}
	this.hide();
}